#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Author: Faker.Deng
Exercise after Chapter 1 Problem 2
"""


# Problem 2
def weekly_pay(pay_per_hour, work_time, over_time):
    """
    Calculate weekly salary
    :param pay_per_hour: Hourly wage
    :param work_time: Normal working hours
    :param over_time: Overtime work time
    :return: None
    """
    total_salary = pay_per_hour * work_time + pay_per_hour * 1.5 * over_time
    print("Weekly pay is", str(total_salary))
    return


if __name__ == "__main__":
    weekly_pay(pay_per_hour=50, work_time=40, over_time=10)
